﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>USER CENTER</title>
		<%@ include file="/share/include.jsp" %>
		<!-- <script src="js/jquery.min.js"></script> -->
   		 <meta name="viewport" content="width=device-width, initial-scale=1">
		 <script type="application/x-javascript"> 
			addEventListener("load", function() { 
				setTimeout(hideURLbar, 0); 
			}, false); 
			function hideURLbar(){ 
				window.scrollTo(0,1); 
			} 
		</script>
	</head>
	<body>
		<!-- container -->
		<!-- header -->
		<div class="header">
			<%@ include file="/control/jsp/layout/header.jsp" %>
			<!-- /bottom-header -->
		</div>
		<!-- header -->
		<!--- top-nav -->
			<%@ include file="/control/jsp/layout/userMenu.jsp" %>
		<!--- top-nav -->
		<!-- Product-Details-page -->
		<div class="details-page">
			<div class="content details-page">
				<div class="product-details">
					<div class="container">
						<div class="details-left" style="width: 100%;margin-top: 20px;">
						    <h4 style="color:red;"><img style="padding: 10px;" src="${root}/images/bx.gif" />Information</h4>
						    <div class="text_info">
								<div class="info_" style="height:110px">
									<div class="info_l">Avatar:</div>
									<div class=" "><c:if test="${not empty user.userHead}">
											<img src="${imageService }${user.userHead}" style="width: 100px;height: 100px;"/>
										</c:if>
										<c:if test="${empty user.userHead}">
											<img src="${root}/images/user_logo.png" height="100" width="100" />
										</c:if></div>
								</div>
								<div class="info_">
									<div class="info_l">Username:</div>
									<div class="info_r"><span id="userName">${fn:escapeXml(user.userName)}</span></div>
								</div>
								<div class="info_">
									<div class="info_l">Your Name:</div>
									<div class="info_r"><input name="realName" type="text" id="realName" class="l_input" disabled="disabled" style="width:300px;background: none;border: 0;" value="${fn:escapeXml(user.realName)}"></div>
								</div>
								<div class="info_">
									<div class="info_l">Address:</div>
									<div class="info_r"><input name="userAddress" type="text" id="userAddress" class="l_input" disabled="disabled" style="width:300px;background: none;border: 0;" value="${fn:escapeXml(user.userAddress)}"></div>
								</div>
								<div class="info_">
									<div class="info_l">Tel:</div>
									<div class="info_r"><input name="userPhone" type="text" id="userPhone" class="l_input" disabled="disabled" style="width:300px;background: none;border: 0;" value="${fn:escapeXml(user.userPhone)}"></div>
								</div>
								<div class="info_">
									<div class="info_l">Email:</div>
									<div class="info_r"><input name="email" type="text" id="email" class="l_input" disabled="disabled" style="width:300px;background: none;border: 0;" value="${fn:escapeXml(user.email)}"></div>
								</div>
								<div class="info_"  style="margin-top:40px;">
									<input type="submit" name="BtnSubmit" onClick="location.href='${root}/control/user/userController/displayEdit.do?userId=${user.userId }'" value="Edit information" id="BtnSubmit" class="p-btn"> &nbsp;&nbsp;
								</div>
								<div class="clearfix"> </div>
							</div>
							<div class="clear"></div>
						</div>
						<div class="clearfix"> </div>
					</div>
			    </div>
		    </div>
		</div>
		<!-- /Product-Details-page -->
		<!-- footer -->
		<%@ include file="/control/jsp/layout/footer.jsp" %>
</body>
</html>

